package io.github.wanggit.antrpc.console.web.utils;

import java.math.BigDecimal;
import java.math.RoundingMode;

public abstract class DoubleScaleUtil {

    public static double scale(double value, int scale) {
        return new BigDecimal(value).setScale(scale, RoundingMode.HALF_UP).doubleValue();
    }
}
